package com.yuantu.judiciary.common;

import lombok.Data;

import java.io.Serializable;

/**
 * 通用返回类
 *
 * @author syw
 * @since 2023-06-07
 **/
@Data
public class Response<T> implements Serializable {

    private int code;

    private T data;

    private String message;

    public Response(int code, T data, String message) {
        this.code = code;
        this.data = data;
        this.message = message;
    }

    public Response(int code, T data) {
        this(code, data, "");
    }

}
